package com.basic.business.labelMapping.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.basic.common.annotation.Excel;
import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;


import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 商品标签映射管理对象 t_label_mapping
 *
 * @author zhaoxy_jn@163.com
 * @date 2025-03-27
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TLabelMapping extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 负责人id */
    @ExcelProperty(value = "负责人id")
    private Long mainId;

    /** 主标签（负责人） */
    @ExcelProperty(value = "主标签")
    @Excel(name = "主标签")
    private String mainLabel;

    /** 子标签（实际存储的标签） */
    @ExcelProperty(value = "子标签")
    @Excel(name = "子标签")
    private String subLabel;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
